package com.ruoyi.study.controller;

import com.ruoyi.common.core.web.controller.BaseController;
import com.ruoyi.common.core.web.page.TableDataInfo;
import com.ruoyi.common.security.annotation.RequiresPermissions;
import com.ruoyi.study.domain.StyMysql;
import com.ruoyi.study.service.IStyMultithreadingService;
import org.apache.xmlbeans.impl.xb.xsdschema.Public;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 数据库信息Controller
 * 
 * @author dwb
 * @date 2024-09-03
 */
@RestController
@RequestMapping("/multithreading")
public class StyMultithreadingController extends BaseController {
    @Autowired
    private IStyMultithreadingService styMultithreadingService;


    /**
     * 查询数据库信息列表
     */
    @GetMapping("/testRun")
    public String testRun()
    {
        String result = styMultithreadingService.testRunMultithreading();
        return result ;
    }

}